//
//  NetworkTools.swift
//  Weibo
//
//  Created by zxy on 2018/12/6.
//  Copyright © 2018 zxy. All rights reserved.
//

import UIKit
import AFNetworking
class NetworkTools: AFHTTPSessionManager {
    static let tools: NetworkTools = {
        //设置基础url,以后每次传后面的内容就行
        let url = URL(string: "https://api.weibo.com/")
        let t = NetworkTools(baseURL: url)
        return t
    }()
    class func sharedNetworkTools() ->NetworkTools{
        return tools
    }
}
